#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "bit_reversed_counter.h"

using namespace std;

int main()
{
	
	brc b = bit_reversed_counter_Init();
	while(1)
	{
		char c = getchar();
		switch(c)
		{
			case '+':
				printf("After inc, val = %d\n",brc_Increment(&b));
				break;
			case '-':
				printf("After dec, val = %d\n",brc_Decrement(&b));
				break;
			case 'q':
				return 0;
				break;
		}
	}
}
